<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="../include/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
		<div style="text-align: center;">
		<a href="/rest/book/toAdd">增加书</a>
		<a href="/index.jsp">首页</a>
		
		<table border="1">
			<tr>
				<td>书名</td>
				<td>操作</td>
			</tr>
			<c:forEach  items="${bookList}"  var="book">
			<tr>
				<td>${book.name }</td>
				<td>
					<button  onclick="location='/rest/book/delete?bookId=${book.bookId }'">删除</button>
				
				</td>
			</tr>
			</c:forEach>			
		</table>
		</div>
		
		
		
		
</body>
</html>